<template>
    <page-body>
        <view class="page">
            <view class="flex align-stretch benben-position-layout flex agreements_flex_0" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
                <view class='flex align-center justify-between flex-sub agreements_fd0_0'>
					<view class='flex align-center agreements_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
						<text class='fu-iconfont2  agreements_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='agreements_fd0_0_c1'>{{tetle}}</text>
					<view class='flex align-center agreements_fd0_0_c0'>
					</view>
				</view>

            </view>
            <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
            <!---flex布局flex布局开始-->
            <view class="flex benben-flex-layout flex-wrap align-center agreements_flex_1">
                <jyf-parser class='agreements_fd1_0' :html="detail.content | richTextFormat">
                </jyf-parser>
            </view>

            <!---flex布局flex布局结束-->


        </view>
    </page-body>
</template>
<script>
    import {
        validate
    } from '@/common/utils/validate.js'

    export default {
        components: {},


        data() {
            return {
                "detail": {
                    "aid": "",
                    "type": "",
                    "content": "",
                    "create_time": ""
                },
                "aid": "",
				tetle:'',
            };
        },
        computed: {

        },
        watch: {},
        onLoad(options) {
            let {
                aid
            } = options
            if (aid !== undefined) this.aid = aid
			if(this.aid == 1 || this.aid == 3){
				this.tetle = '注册协议'
			}else if(this.aid == 4 || this.aid == 6){
				this.tetle = '隐私协议'
			} else if(this.aid == 20){
				this.tetle = '下单协议'
			} else if(this.aid == 27){
				this.tetle = '证照信息'
			} 
        },
        onUnload() {

        },
        onReady() {

        },
        onShow() {
            this.getai46576063f6b7Func()
        },
        onHide() {

        },
        onResize() {

        },
        onPullDownRefresh() {

        },
        onReachBottom(e) {

        },
        onPageScroll(e) {

        },
        methods: {
            //注册协议隐私政策
            async getai46576063f6b7Func() {
                //请求方法
                //数据验证

                let datadetail = await this.$api.get(global.apiUrls.post646576063f6b7, {
                    aid: this.aid
                });

                if (datadetail.data.code != 1) {
                    this.$message.info(datadetail.data.msg);
                    return
                }
                let infodetail = datadetail.data;
                this.detail = infodetail.data

            }
        }
    };
</script>
<style lang="scss" scoped>
    .page {
        width: 100vw;
        overflow-x: hidden;
        min-height: calc(100vh - var(--window-bottom));
        background: #fff;
        background-size: 100% auto;
    }

    .agreements_flex_0 {
        border-bottom: 1px solid #eee;
        background: #fff;
        width: 750rpx;
        height: 88rpx;
        overflow: hidden;
        z-index: 10;
        top: 0rpx;
        background-size: 100% auto !important;
    }

    .agreements_fd0_0_c1 {
        font-size: 36rpx;
        font-weight: 500;
        color: var(--benbenFontColor0);
    }

    .agreements_fd0_0_c0_c0 {
        font-size: 32rpx;
        font-weight: 500;
        color: #333;
    }

    .agreements_fd0_0_c0 {
        width: 180rpx;
        height: 88rpx;
    }

    .agreements_fd0_0 {
        padding: 0rpx 32rpx 0rpx 32rpx;
        height: 88rpx;
    }

    .agreements_flex_1 {
        padding: 20rpx 32rpx 0rpx 32rpx;
    }

    ::v-deep .agreements_fd1_0 {
        width: 100%;
    }
</style>